<script type="text/ng-template" id="featureUpdatePop.html">
    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="box">
                     <m-form invalid="info.invalid" form-save="buttonsClick('save')" form-back="buttonsClick('cancel')" is-save-show="{{info.type !='view'}}"  is-back-show="{{info.type !='view'}}">
                        <m-form-lable>
                            <m-form-line label="功能点名称">
                                <winit-text textdata="info.attr.feature_name" text-required="true"></winit-text>
                            </m-form-line>
                            <m-form-line label="角色">
                                <ui-select multiple ng-model="info.selectRoleList" theme="bootstrap" ng-disabled="disabled" on-select="selectRole($item, $model)" on-remove="removeRole($item, $model)">
                                    <ui-select-match placeholder="查询角色...">{{$item.value}}</ui-select-match>
                                    <ui-select-choices group-by="someGroupFn" repeat="role in info.roleList | propsFilter: {value: $select.search}|limitTo:15">
                                        <div>
                                            角色：<span ng-bind-html="role.value | highlight: $select.search"></span>
                                        </div>
                                    </ui-select-choices>
                                </ui-select>
                            </m-form-line>
                            <m-form-line label="功能描述">
                                <winit-textarea textdata="info.attr.feature_desc"></winit-textarea>
                            </m-form-line>
                            <m-form-line label="输入">
                                <winit-textarea textdata="info.attr.feature_in"></winit-textarea>
                            </m-form-line>
                            <m-form-line label="输出">
                                <winit-textarea textdata="info.attr.feature_out"></winit-textarea>
                            </m-form-line>
                            <m-form-line label="业务逻辑">
                                <winit-textarea textdata="info.attr.feature_logic"></winit-textarea>
                            </m-form-line>
                        </m-form-lable>
                    </m-form>
                </div>
            </div>
        </div>
    </section>
</script>
